package com.situ.javase.day10;

public class OuShuRunnable implements Runnable{

	@Override
	public void run() {
		String threadName = Thread.currentThread().getName();
		for (int i = 2; i <= 1000; i += 2) {
			System.out.println(threadName + " : " + i);
			try {
				// millis the length of time to sleep in milliseconds
				Thread.sleep(50);
			} catch (InterruptedException e) {
				e.printStackTrace();
			}
		}
	}

}
